package com.lening.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 创作时间：2021/4/19 10:49
 * 作者：李增强
 */
@Data
@TableName("tb_user")
public class User {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String name;
    private Integer age;
    private String email;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    //这是个标志位，是否删除，0表示不删除
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer deleted;



}
